CC = g++ -g

.PHONY: all
all: main tests

main: main.o
	$(CC) main.o -o main

main.o: main.cpp queue.h
	$(CC) -c main.cpp

tests: tests.o tests_main.o
	$(CC) tests_main.o tests.o -o tests

tests.o: tests.cpp queue.h
	$(CC) -c tests.cpp

tests_main.o: tests_main.cpp
	$(CC) -c tests_main.cpp

.PHONY: clean
clean:
	rm -f main main.o tests tests.o tests_main.o
